/*
* Copyrigth 2008 Company All rigths reserved
* File Name: TS_Preview_Entity.cs
* Created By:    Wenbin.Xu
* Created Date:   2013/7/8 16:26:55
* Description:    TS_Preview的实体类
* Change History: 
* 
* */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WisDragon.Framework.EntityAttribute;

namespace TrainingsApp.Model {
    /// <summary>
    /// 表示TS_Preview的类型
    /// </summary>
    [Serializable]
    public class TS_Preview_Entity {
        /// <summary>
        /// 前概念主键
        /// </summary>
        [DataMapping("PreviewId", System.Data.DbType.Guid)]
        public System.Guid? PreviewId { get; set; }


        /// <summary>
        /// 批次ID
        /// </summary>
        [DataMapping("Batch", System.Data.DbType.Guid)]
        public System.Guid? Batch { get; set; }

        /// <summary>
        /// 老师主键
        /// </summary>
        [DataMapping("TeachId", System.Data.DbType.Int64)]
        public System.Int64? TeachId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("SchoolId", System.Data.DbType.Int64)]
        public System.Int64? SchoolId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("ClassId", System.Data.DbType.Int64)]
        public System.Int64? ClassId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMapping("ClassIds", System.Data.DbType.String)]
        public System.String ClassIds { get; set; }

        /// <summary>
        /// 章节表主键
        /// </summary>
        [DataMapping("ChapterId", System.Data.DbType.Int64)]
        public System.Int64? ChapterId { get; set; }

        /// <summary>
        /// 学科表主键
        /// </summary>
        [DataMapping("CourseId", System.Data.DbType.Int32)]
        public System.Int32? CourseId { get; set; }

        /// <summary>
        /// 教材表主键
        /// </summary>
        [DataMapping("MaterialsId", System.Data.DbType.Int64)]
        public System.Int64? MaterialsId { get; set; }

        /// <summary>
        /// 问题表主键
        /// </summary>
        [DataMapping("QuestionId", System.Data.DbType.Guid)]
        public System.Guid? QuestionId { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        [DataMapping("PublishDate", System.Data.DbType.DateTime)]
        public System.DateTime PublishDate { get; set; }

        /// <summary>
        /// 引用次数
        /// </summary>
        [DataMapping("ReferenceCount", System.Data.DbType.Int32)]
        public System.Int32 ReferenceCount { get; set; }

        /// <summary>
        /// 引用ID
        /// </summary>
        [DataMapping("RefBy", System.Data.DbType.Guid)]
        public System.Guid? RefBy { get; set; }

        /// <summary>
        /// 问题内容
        /// </summary>
        [DataMapping("Question", System.Data.DbType.String)]
        public System.String Question { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [DataMapping("Name", System.Data.DbType.AnsiString)]
        public System.String Name { get; set; }

        /// <summary>
        /// 学校名称
        /// </summary>
        [DataMapping("SchoolName", System.Data.DbType.AnsiString)]
        public System.String SchoolName { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        [DataMapping("PublishSmallDate", System.Data.DbType.String)]
        public System.String PublishSmallDate { get; set; }

        /// <summary>
        /// 引用总次数
        /// </summary>
        [DataMapping("ReferenceTotal", System.Data.DbType.Int32)]
        public System.Int32 ReferenceTotal { get; set; }

        /// <summary>
        /// 是否回答
        /// </summary>
        [DataMapping("IsAnswer", System.Data.DbType.Int32)]
        public System.Int32 IsAnswer { get; set; }

        public List<TS_Preview_Result_Entity> resultList { get; set; }

        /// <summary>
        /// 记录数
        /// </summary>
        [DataMapping("ResultCount", System.Data.DbType.Int64)]
        public System.Int64 ResultCount { get; set; }

        public System.Double ReferencePercent { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        [DataMapping("ProvinceName", System.Data.DbType.String)]
        public System.String ProvinceName { get; set; }

        /// <summary>
        /// 地区
        /// </summary>
        [DataMapping("AreaName", System.Data.DbType.String)]
        public System.String AreaName { get; set; }

        /// <summary>
        /// 班级
        /// </summary>
        [DataMapping("ClassName", System.Data.DbType.String)]
        public System.String ClassName { get; set; }

        public Array Percents { get; set; }
    }
}